﻿using GDGeek;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace MrPP.iot.Guide
{
    public class GuideHead : MonoBehaviour
    {


        [SerializeField]
        private GuideArrow _arrow;

        //public void Start() {
          //  GuideManager.Instance.setHead(this);
           // _arrow =
        //}


        public void lookAt(GuideTarget target)
        {
            if (target == null) {
                _arrow.unlink();
            }
            else {
                _arrow.link(target.getPoint());
            }
        
        }
    }
}